package com.jimikongjian.service.base;

import com.jimikongjian.models.ResponseMessage;
import com.jimikongjian.models.Upvote;

/**
 * Created by fuxiuyang on 17-5-14.
 */
public interface IUpvoteService {

    /**
     * 对某一篇文章点赞
     * @param upvote
     */
    public ResponseMessage upvoteArticle(Upvote upvote);

    /**
     * 判断该用户是否已经点过赞
     * @param upvote
     * @return
     */
    public boolean hasUpvote(Upvote upvote);

    /**
     * 对某一篇文章取消点赞
     * @param upvote
     */
    public ResponseMessage deleteUpvote(Upvote upvote);
}
